<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('BaseConfig/index')}">基本设置</a></li>
        <li ><a href="{:url('BaseConfig/add')}">添加基本设置</a></li>
        <li class="active"><a href="#">编辑基本设置</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" action="{:url('BaseConfig/editPost')}" method="post">

        <div class="form-group">
            <label for="input-type" class="col-sm-2 control-label">类型</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-type" name="type" value="{$baseConfig.type}">
            </div>
        </div>
        <div class="form-group">
            <label for="input-title" class="col-sm-2 control-label">名称</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-title" name="title" value="{$baseConfig.title}">
            </div>
        </div>
        <div class="form-group">
            <label for="input-key" class="col-sm-2 control-label">属性</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-key" name="key" value="{$baseConfig.key}">
            </div>
        </div>
        <div class="form-group">
            <label for="input-val" class="col-sm-2 control-label">值</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-val" name="val" value="{$baseConfig.val}">
            </div>
        </div>
        <div class="form-group">
            <label for="input-note" class="col-sm-2 control-label">描述</label>
            <div class="col-md-6 col-sm-10">
                <textarea class="form-control" name="note" id="input-note">{$baseConfig.note}</textarea>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
               <input type="hidden" name="id" value="{$baseConfig.id}">
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>
    $("#view").click(function () {
        $("#form-url").css('display','');
        $("#form-key").css('display','none');
    });
    $("#click").click(function () {
        $("#form-url").css('display','none');
        $("#form-key").css('display','');
    });
</script>
</body>
</html>
